package edu.fdzc.learn.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 考试提交表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("exam_submissions")
public class ExamSubmission implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 考试ID
     */
    private Long examId;

    /**
     * 学生ID
     */
    private Long studentId;

    /**
     * 学生答案(JSON格式)
     */
    private String answers;

    /**
     * 考试成绩
     */
    private Integer score;

    /**
     * 提交时间
     */
    private LocalDateTime submittedAt;
}